<?php

namespace app\admin\model\stock;

use think\Model;

/**
 * Locationsbin
 */
class Locationsbin extends Model
{
    // 表主键
    protected $pk = 'ID';
    
    // 表名
    protected $name = 'stock_locationsbin';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function loccodeTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\stock\Locations::class, 'loccode', 'loccode');
    }
}